<template>
	<view v-if="show" class="first-connect flex-no-horizontal">

		<view class="content-wrap">
			<image src="../../../static/gongxihuode.png" mode="aspectFit"></image>
			<view class="info">


				<view class="text-wrap text-center">
					<view class="">
						恭喜您首次同步成功！
					</view>
					<view class="">
						您获得3元气
					</view>
				</view>
				<view class="btn" @click="close">
					确定
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false
			}
		},
		methods: {
			open() {
				this.show = true
			},
			close() {
				this.show = false;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.first-connect {
		position: fixed;
		left: 0;
		top: 0;
		z-index: 900;
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.8);
		justify-content: center;

		.content-wrap {
			position: relative;
			width: 100%;

			image {
				width: 100%;
				height: 1060rpx;
			}

			.info {
				position: absolute;
				width: 100%;
				top: 640rpx;


				.text-wrap {

					font-size: 28rpx;
					margin-bottom: 60rpx;
				}

				.btn {
					width: 540rpx;
					height: 80rpx;
					line-height: 80rpx;
					border-radius: 20rpx;
					background: rgba(35, 89, 248, 1);
					color: white;
					font-weight: 500;
					font-size: 32rpx;
					margin: auto;
					text-align: center;

				}
			}
		}
	}
</style>